package com.study.test.threadtest;

/**
 * @author 陈涛
 * @description:
 * @Date 2019/6/29 15:37
 */
public class TxtThread implements Runnable  {
    int num = 100;
    @Override
    public void run() {
        while (num > 0){
            try {
                Thread.sleep(1);
            } catch (InterruptedException e) {
                e.printStackTrace();
            }
            System.out.println(Thread.currentThread().getName()+ "this is " + num--);
        }

    }
}
